package com.iie.bigVideo.mapper;

import com.iie.bigVideo.entity.Image;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.iie.bigVideo.entity.Video;
import com.iie.bigVideo.entity.dto.UserDto;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author XXX
 * @since 2024-01-29
 */
public interface ImageMapper extends BaseMapper<Image> {

    List<Image> queryByCatalogId(@Param("catalogId") String catalogId);

    Integer addImageObject(Image image);

    Integer addImageList(@Param("imageArrayList") List<Image> imageArrayList);

    Integer queryByImageId(@Param("imageId") String imageId);
    Image queryByImageIdObject(@Param("imageId") String imageId);

    Boolean updateByImageIdImagePath(@Param("imageId") Integer imageId, @Param("imagePath") String imagePath);

    List<Image> queryByImagesId(@Param("imageIds") List<String> imageIds);

    Integer deleteByImagesId(@Param("imageIds") List<String> imageIds);
    Integer deleteByImageId(@Param("imageId") String imageId);

    Boolean updateImageList(@Param("imageObj") List<Image> imageObj);


    Boolean updateImageObj(Image image);

}
